
from java.awt import BorderLayout, Dimension
from javax.swing import JEditorPane, JScrollPane, JFrame

class simpleURL(object):
    def __init__(self, frame):
        global applet
        
        self.frame = frame
        
        self.jf = JEditorPane()
        self.jf.setEditable(False)
        self.sp = JScrollPane(self.jf)
        
        self.frame.getContentPane().add(self.sp, BorderLayout.CENTER)
        
        
        url = applet.getProperty("url")
        
        if(url != None):
            self.jf.setPage(url)
            
        self.frame.pack()
        self.frame.setSize(Dimension(200,200))
        





s = simpleURL(frame)